/**
 * 
 */
package prepro;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;

import myLucene.Props;
import myLucene.Searcher;

import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;

/**
 * @author {J. Feit} 25.08.2010
 */
public class Test {

	/**
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub
		Directory iDirectory = FSDirectory.open(new File(Props.readIndexPath));
		IndexSearcher searcher = new IndexSearcher(iDirectory, true);
		IndexReader iReader = searcher.getIndexReader();
		// Searcher.dictSize(iReader);
		//	Searcher.searchVerbs("anschluß", iReader);
		// HashMap<String, Integer> terms =Searcher.termsToInt();
		// for(String s: terms.keySet()){
		// System.out.println(s+" "+terms.get(s));
		// }
	}

}
